import axios from "../utils/axios";


export function getGB15WStaData(stock) {
    return axios.get("/gb/15w/" + stock)
}
export function getGB20WStaData(stock) {
    return axios.get("/gb/20w/" + stock)
}
export function getGB30WStaData(stock) {
    return axios.get("/gb/30w/" + stock)
}
export function getGB60WStaData(stock) {
    return axios.get("/gb/60w/" + stock)
}
export function getGB15WStaUpData(date) {
    if(date) {
        return axios.get("/gb/15wup?date=" + date)
    }
    return axios.get("/gb/15wup")
}
export function getGB20WStaUpData(date) {
    if (date) {
        return axios.get("/gb/20wup?date=" + date)
    }
    return axios.get("/gb/20wup")
}

export function getGB30WStaUpData(date) {
    if (date) {
        return axios.get("/gb/30wup?date=" + date)
    }
    return axios.get("/gb/30wup")
}

export function getGB60WStaUpData(date) {
    if(date) {
        return axios.get("/gb/60wup?date=" + date)
    }
    return axios.get("/gb/60wup")
}

export function getGB15WTopData() {
    return axios.get("/gb/top/15w")
}

export function getGB20WTopData() {
    return axios.get("/gb/top/20w")
}
export function getGB30WLowData() {
    return axios.get("/gb/low/30w")
}

export function getGB30WTopData() {
    return axios.get("/gb/top/30w")
}

export function getGB60WTopData() {
    return axios.get("/gb/top/60w")
}

export function getGB60WLowData() {
    return axios.get("/gb/low/60w")
}